package com.imike.akka;

import akka.dispatch.OnSuccess;

public class PrintResult<T> extends OnSuccess<T> {

    private String name;

    public PrintResult(String name) {
        super();
        this.name = name;
    }

    @Override
    public final void onSuccess(T t) throws Exception {
        
        System.out.println("sleep in on success...");
        Thread.sleep(1000);
        System.out.println("sleep in on success end");
        System.out.println(t + " " + name);
    }
}
